package com.example.stock.ui.query;

import com.example.stock.BR;
import com.example.stock.R;
import com.example.stock.base.BaseRecyclerViewAdapter;
import com.example.stock.base.CommonViewHolder;
import com.example.stock.model.GoodsData;

public class FormAdapter extends BaseRecyclerViewAdapter<GoodsData> {

    private int indexType;
    public FormAdapter(int indexType) {
        this.indexType = indexType;
    }

    @Override
    protected int layoutId(int viewType) {
        return R.layout.item_form2;
    }

    @Override
    protected int variableId() {
        return BR.itemBean;
    }

    @Override
    protected void convert(CommonViewHolder<GoodsData> holder, GoodsData entity, int position) {
        holder.setBinding(BR.indexType, indexType);
        super.convert(holder, entity, position);
    }
}
